﻿/*CREATE TRIGGER [dbo].[AreasSecciones_DeletionTrigger] 
    ON [AreasSecciones] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[AreasSecciones_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[AreaSeccionGuid] = [AreasSecciones_Tombstone].[AreaSeccionGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[AreasSecciones_Tombstone] 
    ([AreaSeccionGuid], DeletionDate)
    SELECT [AreaSeccionGuid], GETUTCDATE()
    FROM deleted 
END*/